# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-yg.lockfile
pkgver=2.3
pkgrel=2
pkgdesc="Lockfile object with timeouts and context manager"
url="https://github.com/yougov/yg.lockfile"
arch="noarch"
license="MIT"
depends="py3-jaraco.functools py3-tempora py3-zc.lockfile"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/y/yg.lockfile/yg.lockfile-$pkgver.tar.gz
	setuptools_scm.patch
	"
builddir="$srcdir/yg.lockfile-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0d28f48dd380f8919d592fad85d7aadf40802a23267c2c6751915b65b284c94acd64422454d04a0b45275b6c600b4e880b82a87cef2c38289c464e95eda121ff  yg.lockfile-2.3.tar.gz
93da566bf12f0902da490b5a96a39e12771e6d040abd5385ff9b61499788f470f6ce8d212c671666db04f831ee979cdcb4e0e1943946c5e123b3a6ab8686b185  setuptools_scm.patch
"
